<?php
global $framework;
require_once("$framework/debug.php"); 

function __debug($message,$file="",$line=""){
	$dbg = Debug::getInstance();
	$dbg->message("DEBUG",$message,$file,$line);
}
function __info($message){
	$dbg = Debug::getInstance();
	$dbg->message("INFO",$message);
}
function __warn($message){
	$dbg = Debug::getInstance();
	$dbg->message("WARN",$message);
}
function __error($message){
	$dbg = Debug::getInstance();
	$dbg->message("ERROR",$message);
}

function __displaydebug(){
	$dbg = Debug::getInstance();
	$dbg->displayDebug();
}
?>